package com.k8.rpc.config;

import lombok.Data;

@Data

public class ProviderConfig {
    private String host;

    /**
     * The port of the service.
     */
    private Integer port;

    /**
     * The context path of the service.
     */
    private String contextpath;

    /**
     * The thread pool configuration.
     */
    private String threadpool;

    /**
     * The name of the thread pool.
     */
    private String threadname;

    /**
     * The size of the thread pool (fixed size).
     */
    private Integer threads;



    /**
     * The keep-alive time of the thread pool, default unit: TimeUnit.MILLISECONDS.
     */
    private Integer alive;

    /**
     * The length of the thread pool queue.
     */
    private Integer queues;


    /**
     * 最大允许的连接数
     */
    private Integer accepts;

//netty相关配置
    /**
     * 配置netty Loop的个数
     */
    private Integer iothreads;
    /**
     * The maximum payload length.消息长度限制
     */
    private Integer payload;

    /**
     * The size of the network I/O buffer.
     */
    private Integer buffer;

//服务注册的线程个数

    /**
     * The number of threads for the asynchronous export pool.
     */
    private Integer exportThreadNum;
}
